from starlette.endpoints import HTTPEndpoint
from starlette.responses import JSONResponse
from model.ModWorkrecordProOther import WorkrecordProOther, workrecordProOtherSchema
from database import Session, engine
import datetime


def get_pro_other(session):
    # 其它类问题统计表
    pro_other_list = session.query(WorkrecordProOther).order_by(WorkrecordProOther.bureauid).all()
    return JSONResponse(workrecordProOtherSchema.dump(pro_other_list, many=True).data)


